package com.example.test.dialogfactory.customerview;

import android.content.Context;
import android.util.AttributeSet;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.AppCompatImageView;
import com.example.test.dialogfactory.R;

public class CustomerImageView extends AppCompatImageView {

    public CustomerImageView( @NonNull Context context ) {

        super( context );
    }

    public CustomerImageView( @NonNull Context context, @Nullable AttributeSet attrs ) {

        super( context, attrs );
    }

    public CustomerImageView( @NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr ) {

        super( context, attrs, defStyleAttr );
    }

    /* activity_main13_scene.xml KeyTrigger使用 */
    public void changeImage() {

        setImageResource( R.drawable.dogdog2 );
    }

    /* activity_main13_scene.xml KeyTrigger使用 */
    public void resetImage() {

        setImageResource( R.drawable.dogdog );
    }
}
